% DrawLineGraphs.m
% Reduces the amount of image rendering done by the main file
bgLG = biograph(LineG,ids2);

bakeriesLG = chooseBakeries(lgDistances, lgWanderingDistance, 4);
bgLG = ColorVertices(bakeriesLG(1), bgLG);
bgLG = ColorVertices(bakeriesLG(2), bgLG, [0 1 0]);
bgLG = ColorVertices(bakeriesLG(3), bgLG, [0 0 1]);
view(bgLG);

banksLG = chooseBanks(lgDistances, lgWanderingDistance, 5, 3);
bgLG = biograph(LineG,ids2);
bgLG = ColorVertices(banksLG(1), bgLG);
bgLG = ColorVertices(banksLG(2), bgLG, [0 1 0]);
bgLG = ColorVertices(banksLG(3), bgLG, [0 0 1]);
view(bgLG);

fireStationsLG = chooseFireStations(lgDistances, 4);
bgLG = biograph(LineG,ids2);
bgLG = ColorVertices(fireStationsLG(1), bgLG);
bgLG = ColorVertices(fireStationsLG(2), bgLG, [0 1 0]);
bgLG = ColorVertices(fireStationsLG(3), bgLG, [0 0 1]);
view(bgLG);

policeStationsLG = choosePoliceStations(lgDistances, lgWanderingEccentricities, 7);
bgLG = biograph(LineG,ids2);
bgLG = ColorVertices(policeStationsLG(1), bgLG);
bgLG = ColorVertices(policeStationsLG(2), bgLG, [0 1 0]);
bgLG = ColorVertices(policeStationsLG(3), bgLG, [0 0 1]);
view(bgLG);

%hospitalsLG = chooseHospitals(lgDistances,4);
bgLG = biograph(LineG,ids2);
bgG = ColorVertices(GetMultipleLocations(lgDistances, 3), bgG, [0 0 1]);
bgG = ColorVertices(GetMultipleLocations(lgDistances, 2), bgG, [0 1 0]);
bgG = ColorVertices(GetMultipleLocations(lgDistances, 1), bgG);
view(bgLG);